#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->lineEdit->setClearButtonEnabled(true);
    ui->lineEdit->setPlaceholderText("请输入您的昵称");

    ui->lineEdit_2->setClearButtonEnabled(true);
    ui->lineEdit_2->setPlaceholderText("请输入账号");
    ui->lineEdit_2->setInputMask("000-000-0000");

    ui->lineEdit_3->setClearButtonEnabled(true);
    ui->lineEdit_3->setPlaceholderText("请输入密码");
    ui->lineEdit_3->setEchoMode(QLineEdit::Password);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug() << "昵称："<<ui->lineEdit->text()
             << "账号："<<ui->lineEdit_2->text()
             << "密码："<<ui->lineEdit_3->text();
}
